home *** CD-ROM | disk | FTP | other *** search
- on DoGame currGame
- if objectp(currGame) then
- DoVideo(currGame)
- DoImage(currGame)
- DoText(currGame)
- DoTitleBar(currGame)
- DoDemo(currGame)
- updateStage()
- end if
- end
-
- on DoVideo optionData
- set videoDisplay to the videoDisplay of the currMenu of GetGlobal(#gTitleObject)
- if not objectp(videoDisplay) then
- return 0
- end if
- set newVideo to the number of member the movie of optionData
- if newVideo > 0 then
- init(videoDisplay, newVideo)
- return 1
- else
- put "no video"
- clear(videoDisplay)
- return 0
- end if
- end
-
- on DoImage optionData
- set imageDisplay to the imageDisplay of the currMenu of GetGlobal(#gTitleObject)
- if not objectp(imageDisplay) then
- return 0
- end if
- set newImage to the number of member the image of optionData
- if newImage > 0 then
- init(imageDisplay, newImage)
- return 1
- else
- clear(imageDisplay)
- return 0
- end if
- end
-
- on DoText optionData
- set textDisplay to the textDisplay of the currMenu of GetGlobal(#gTitleObject)
- if not objectp(textDisplay) then
- return 0
- end if
- set newText to the description of optionData
- if newText = "-" then
- set newText to the tag of optionData
- end if
- if newText <> "-" then
- init(textDisplay, newText)
- return 1
- else
- clear(textDisplay)
- return 0
- end if
- end
-
- on DoTitleBar optionData
- set titleBar to the titleBar of the currMenu of GetGlobal(#gTitleObject)
- if the number of member titleBar <= 0 then
- return 0
- end if
- set newText to the name of optionData
- if newText <> "-" then
- set the text of member titleBar to newText
- return 1
- else
- set the text of member titleBar to " "
- return 0
- end if
- end
-
- on DoDemo optionData
- set demoButton to the demoButton of the currMenu of GetGlobal(#gTitleObject)
- if not objectp(demoButton) then
- return 0
- end if
- set platformOK to 0
- if the platform contains "Macintosh" then
- if the category of optionData = "Macintosh" then
- set platformOK to 1
- end if
- else
- if the category of optionData = "PC" then
- set platformOK to 1
- end if
- end if
- put "platform check:", the platform, the category of optionData, platformOK
- set newDemo to the filepath of optionData
- set newURL to the url of optionData
- if ((newDemo <> "-") or (newURL <> "-")) and platformOK then
- init(demoButton, newDemo, newURL)
- else
- clear(demoButton)
- end if
- end
-